<extend name="Public::innerbase"/>
<block name="content">
<div class="container">
    <div class="page-header">
        <h3>{:isset($role['id'])?'编辑':'新增'}角色</h3>
    </div>
    <form action="" method="post" class="form-horizontal">
        <div class="form-group">
            <label class="control-label col-xs-2">角色名</label>
            <div class="col-md-4">
                <input type="text" class="form-control" name="name" value="{$role.name|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-2">是否启用</label>
			<?php if(empty($role)) $role['status'] = 1;?>
            <div class="col-md-4">
                <label class="radio-inline"><input type="radio" name="status" <?php echo $role['status']?"checked":"";?> value="1">是</label>
                <label class="radio-inline"><input type="radio" name="status" <?php echo $role['status']?"":"checked";?> value="0">否</label>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-2">说明</label>
            <div class="col-md-4">
                <input type="text" class="form-control" name="remark" value="{$role.remark|default=''}" />
            </div>
        </div>
        <div class="form-group">
			<div class="col-xs-offset-2 col-md-6">
				<button class="btn btn-success ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
				<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
			</div>
        </div>
    </form>
</div>
</block>
<block name="js">
  
</block>